package xin.yangshuai.log01.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xin.yangshuai.log01.service.HelloService;

/**
 * HelloController
 *
 * @author shuai
 * @date 2023/8/18
 */
@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;

    @RequestMapping("hello")
    public String index() {
        helloService.hello();
        return "hello world";
    }
}
